<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>7 Paradigms Template</title>
        <link href="../css/bootstrap.css" rel="stylesheet">
    </head>
    <body>
        <!-- begin imports -->
        <?php
        session_start();
        $_SESSION['userName'] = "aMarciniak"; //hardcoded for testing
        $_SESSION['userPassHash'] = "aMarciniak"; //hardcoded for testing
        require_once 'paradigmShift/_paradigmShift.php';
        ?>
        <!-- end imports -->
        <nav>            
            <!-- begin  header -->
            <?php include_once 'header.php'; ?>
            <!-- end header -->
        </nav>
        <section>
            <!-- begin main body -->
            <?php
            //determine which panel is being shown.
            //default is "upcoming shifts"
            $mainPanel = "upcoming";
            if (isset($_POST['mainPanel'])) {
                //priority is if the user wants to change panel
                $_SESSION['mainPanel'] = $mainPanel = $_POST['mainPanel'];
            } elseif (isset($_SESSION['mainPanel'])) {
                //if not changing, checks to see most recent page
                $mainPanel = $_SESSION['mainPanel'];
            }
            switch ($mainPanel) {
                case "View Upcoming Per Worker":
                    include_once "main_upcomingPerWorker.php";
                    break;
                case "Add New Account":
                    include_once "main_addAccount.php";
                    break;
                case "Add New Shift":
                    include_once "main_addShift.php";
                    break;
                case "Pending Requests":
                    include_once "main_pendingRequests.php";
                    break;
                case "Shift Manager":
                    include_once "main_shiftManager.php";
                    break;
                case "Manager Manager":
                    include_once "main_updateManagers.php";
                    break;
                case "Employee Manager":
                    include_once "main_empManager.php";
                    break;
                case "Shift Shop":
                    include_once "main_shop.php";
                    break;
                case "Profile":
                    include_once "main_profile.php";
                    break;
                case "History":
                    include_once "main_history.php";
                    break;
                default:
                    include_once "main_upcoming.php";
                    break;
            }
            ?>
            <!-- end main body -->
        </section>
        <footer>
            <!-- begin footer -->
            <?php include_once 'footer.php'; ?>
            <!-- end footer -->
        </footer>
        <script type="text/javascript" src="../js/jquery.js"></script>
        <script type="text/javascript" src="../js/bootstrap.js"></script>
    </body>
</html>
